package me.younian.transmitNIO;

import org.apache.log4j.Logger;

/**
 * Main
 */
public class App {
    private static final Logger logger = Logger.getLogger(App.class);

    public static void main(String[] args) {
        //ApplicationContext apc = new ClassPathXmlApplicationContext("applicationContext.xml");

        HttpServer serverUser = new HttpServer();
        serverUser.setEncoding("UTF-8");
        serverUser.setPort(8888);
        serverUser.setHandler(new HandlerUser());
        serverUser.start(1);

        HttpServer serverClient = new HttpServer();
        serverClient.setEncoding("UTF-8");
        serverClient.setPort(9999);
        serverClient.setHandler(new HandlerClient());
        serverClient.start(2);
    }
}
